<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8">
    <title>demo</title>
    <link rel="stylesheet" type="text/css" href="toggling.css">
    <style type="text/css">
    .pull-left {
        float: left;
    }
    
    .pull-right {
        float: right;
    }
    </style>
</head>

<body>
    <div class="container mu pull-left">
        <div class="part part1">
            <a href="javascript:void(0)"><img src="images/before.jpg" alt=""></a>
        </div>
        <div class="part part2">
            <a href="javascript:void(0)"><img src="images/after.jpg" alt=""></a>
        </div>
        <a href="javascript:void(0)" class="control-bar">
        </a>
    </div>
    <div class="container rm pull-right">
        <div class="part part1">
            <a href="javascript:void(0)"><img src="images/before.jpg" alt=""></a>
        </div>
        <div class="part part2">
            <a href="javascript:void(0)"><img src="images/after.jpg" alt=""></a>
        </div>
        <a href="javascript:void(0)" class="control-bar vertical-bar">
        </a>
    </div>
</body>
<script type="text/javascript" src="http://apps.bdimg.com/libs/jquery/1.9.1/jquery.min.js"></script>
<script type="text/javascript" src="toggling.js"></script>
<script type="text/javascript">
$(function() {
    $('.mu').toggling({
        ring: true
    });
    $('.rm').toggling({
        vertical: true,
        ring: true
    });
});
</script>

</html>
